package org.achartengine.internal.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/* loaded from: classes2.dex */
public class g implements Serializable {
    private static final long serialVersionUID = 1;
    private List<h> a = new ArrayList();

    public synchronized void a(h hVar) {
        this.a.add(hVar);
    }

    public synchronized void a(int i, h hVar) {
        this.a.add(i, hVar);
    }

    public synchronized void a(int i) {
        this.a.remove(i);
    }

    public synchronized void b(h hVar) {
        this.a.remove(hVar);
    }

    public synchronized h b(int i) {
        return this.a.get(i);
    }

    public synchronized int a() {
        return this.a.size();
    }

    public synchronized h[] b() {
        return (h[]) this.a.toArray(new h[0]);
    }
}
